package com.wc.AlgoOJ_homework.aloj练习赛.C_因子总数;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/5/8 20:40
 * @description http://43.138.190.70:8888/p/GDCPC3
 */
public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n, P = (int)1e9 + 7;

    public static void main(String[] args) {
        n = sc.nextInt();
        Map<Integer, Integer> map = new HashMap<>();
        for (int i = 1; i <= n; i++) {
            int x = i;
            for (int j = 2; j <= x / j; j++) {
                if (x % j == 0) {
                    int t = 0;
                    while (x % j == 0) {
                        x /= j;
                        t++;
                    }
                    map.put(j, map.getOrDefault(j, 0) + t);
                }
            }
            if (x > 1) map.put(x, map.getOrDefault(x, 0) + 1);
        }
        long res = 1;
        for (int v : map.values()) {
            res = res * (v + 1) % P;
        }
        System.out.println(res);
    }
}